package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;

import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 服务大类表
 * </p>
 *
 * @author stylefeng
 * @since 2019-10-23
 */
@TableName("business_category")
public class BusinessCategory extends Model<BusinessCategory> {

    private static final long serialVersionUID = 1L;
    
   
    @ApiModelProperty(value="id",hidden=true)
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 大类英文缩写
     */
    @ApiModelProperty(value="大类英文缩写(必须唯一)",name="cateId",example="zjg")
    @TableField("cate_id")
    private String cateId;
    /**
     * 大类中文名字
     */
    @ApiModelProperty(value="大类中文名字",name="cateName",example="钟点工")
    @TableField("cate_name")
    private String cateName;
    /**
     * 大类图片地址
     */
    @ApiModelProperty(value="大类图片地址",name="cateImg",example="/img/bg.png")
    @TableField("cate_img")
    private String cateImg;
    /**
     * 大类跳转链接地址
     */
    @ApiModelProperty(value="大类跳转链接地址(相对地址)",name="cateUrl",example="/notice")
    @TableField("cate_url")
    private String cateUrl;
    /**
     * 大类顺序
     */
    @ApiModelProperty(value="大类顺序",name="cateSeq" ,example="0")
    @TableField("cate_seq")
    private Integer cateSeq;
    /**
     * 是否有效
     */
    @ApiModelProperty(value="是否有效",name="isValid" ,example="0")
    @TableField("is_valid")
    private Integer isValid;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="createTime",hidden=true)
    @TableField("create_time")
    private Date createTime;
    /**
     * 修改时间
     */
    @ApiModelProperty(value="updateTime",hidden=true)
    @TableField("update_time")
    private Date updateTime;
    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCateId() {
        return cateId;
    }

    public void setCateId(String cateId) {
        this.cateId = cateId;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public String getCateImg() {
        return cateImg;
    }

    public void setCateImg(String cateImg) {
        this.cateImg = cateImg;
    }

    public String getCateUrl() {
        return cateUrl;
    }

    public void setCateUrl(String cateUrl) {
        this.cateUrl = cateUrl;
    }

    public Integer getCateSeq() {
        return cateSeq;
    }

    public void setCateSeq(Integer cateSeq) {
        this.cateSeq = cateSeq;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BusinessCategory{" +
        ", id=" + id +
        ", cateId=" + cateId +
        ", cateName=" + cateName +
        ", cateImg=" + cateImg +
        ", cateUrl=" + cateUrl +
        ", cateSeq=" + cateSeq +
        ", isValid=" + isValid +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", remark=" + remark +
        "}";
    }
}
